package com.quanyan.user.serviceFacade.impl;

import com.quanyan.user.service.UserTaskService;
import com.quanyan.user.serviceFacade.UserTaskServiceFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by jian.zhou on 2016/7/2.
 */
@Service("userTaskServiceFacade")
public class UserTaskServiceFacadeImpl implements UserTaskServiceFacade {


    @Autowired
    private UserTaskService userTaskService;


    @Override
    public void whileTask(Integer uid, Integer taskId) {
        userTaskService.whileTask(uid,taskId);
    }

    @Override
    public Boolean isTaskComplete(Integer uid, Integer taskId) {
        return userTaskService.isNewTaskComplete(uid,taskId);
    }

    @Override
    public Boolean isDayTaskComplete(Integer uid, Integer taskId) {
        return userTaskService.isDayTaskComplete(uid,taskId);
    }
}
